<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ page import="com.test.vo.Student" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<%
	String[] name={"111","222","333","444","555"};
	request.setAttribute("name",name);
	
	ArrayList list=new ArrayList();
	Student stvo=new Student();
	String[] favourites={"football","swimming","reading"};
	stvo.setName("aaa");
	stvo.setFavourites(favourites);
	list.add(stvo);
	Student stvo1=new Student();
	String[] favourites1={"football1","swimming1","reading1"};
	stvo1.setName("bbb");
	stvo1.setFavourites(favourites1);
	list.add(stvo1);
	Student stvo2=new Student();
	String[] favourites2={"football2","swimming2","reading2"};
	stvo2.setName("ccc");
	stvo2.setFavourites(favourites2);
	list.add(stvo2);
	request.setAttribute("students",list);
%>
<html>
  <head>
    <title>success page</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  	<logic:iterate id="id" scope="request" name="name">
  		id=${id}<br>
  	</logic:iterate>
  	<logic:iterate id="student" scope="request" name="students" offset="1" indexId="i">
  		${i}用户名：${student.name }<br>
  		爱好：
  		<logic:iterate id="favourite" name="student" property="favourites">
  			${favourite }
  		</logic:iterate><br>
  	</logic:iterate>
  </body>
</html>
